<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: cyliu
  Date: 2022/11/17
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        String err = request.getParameter("err");
        if (err ==""){
            out.println("用户名或密码错");
        }
    %>
    <h1>用户登录</h1>
    <form action="${pageContext.request.contextPath}/do_login" method="post">
        <input type="text" name="username" placeholder="用户名">
        <br>
        <input type="password" name="password" placeholder="密码"> <br>
        <input type="submit" value="登录">
    </form>
</body>
</html>
